package com.vortex.cloud.zhsw.xinyang.enums.ums;


import com.google.common.collect.Maps;
import com.vortex.cloud.zhsw.xinyang.enums.IBaseEnum;

import java.util.LinkedHashMap;

/**
 * 导出excel列定义枚举
 *
 * @author zlh
 */
public enum ParamsEnum implements IBaseEnum {

    /**
     *
     */
    LINE_LEVEL("管线等级", "line_level"),
    SUPPLY_TYPE("供水类型", "param_supply_type"),
    RIVER_SYSTEM("河道水系", "param_river_water_system"),
    RIVER_MANAGE_LEVEL("河道管理等级", "param_river_manage_level"),
    RIVER_LEVEL("河道等级", "param_river_level"),
    WATER_USER_SUPPLY_TYPE("用水户供水类型", "param_water_user_supply_type"),
    ;

    private final String title;

    private final String field;

    ParamsEnum(String title, String field) {
        this.title = title;
        this.field = field;
    }

    public static LinkedHashMap<String,String> getMap(){
        LinkedHashMap<String,String> map = Maps.newLinkedHashMap();
        for (ParamsEnum value : ParamsEnum.values()) {
            map.put(value.getTitle(), value.getField());
        }
        return map;
    }

    public String getTitle() {
        return title;
    }

    public String getField() {
        return field;
    }

    @Override
    public String getValue() {
        return null;
    }

    @Override
    public int getKey() {
        return 0;
    }
}
